package com.hongyun.tms.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 作业计划
 * </p>
 *
 * @author liPeng
 * @since 2024-06-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("TMS_PROD_PLAN")
@ApiModel(value="TmsProdPlan对象", description="作业计划")
public class ProdPlan implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId("ID")
    private Long id;

    @ApiModelProperty(value = "计划编号")
    @TableField("PLAN_CODE")
    private String planCode;

    @ApiModelProperty(value = "船舶ID")
    @TableField("SHIP_ID")
    private Long shipId;

    @ApiModelProperty(value = "码头ID")
    private Long dockId;

    @ApiModelProperty(value = "船名")
    @TableField("SHIP_NAME")
    private String shipName;

    @ApiModelProperty(value = "贸别：内贸，外贸")
    @TableField("TRADE_TYPE")
    private String tradeType;

    @ApiModelProperty(value = "装卸：装，卸")
    @TableField("LOAD_UNLOAD")
    private String loadUnload;

    @ApiModelProperty(value = "泊位")
    @TableField("BERTH_NO")
    private String berthNo;

    @ApiModelProperty(value = "计划作业时间")
    @TableField("PLAN_TIME")
    private LocalDate planTime;

    @ApiModelProperty(value = "前吃水")
    @TableField("FRONT_DRAFT")
    private BigDecimal frontDraft;

    @ApiModelProperty(value = "后吃水")
    @TableField("REAR_DRAFT")
    private BigDecimal rearDraft;

    @ApiModelProperty(value = "客户ID")
    @TableField("CUSTOMER_ID")
    private Long customerId;

    @ApiModelProperty(value = "客户名称")
    @TableField("CUSTOMER_NAME")
    private String customerName;

    @ApiModelProperty(value = "进出，进，出")
    @TableField("IN_OUT")
    private String inOut;

    @ApiModelProperty(value = "货名")
    @TableField("CARGO_NAME")
    private String cargoName;

    @ApiModelProperty(value = "货重")
    @TableField("TON")
    private BigDecimal ton;

    @ApiModelProperty(value = "备注")
    @TableField("REMARK")
    private String remark;

    @ApiModelProperty(value = "0待审1已审2已计费")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "创建人ID")
    @TableField("CREATE_BY")
    private Long createBy;

    @ApiModelProperty(value = "创建人姓名")
    @TableField("CREATE_BY_NAME")
    private String createByName;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改人ID")
    @TableField("UPDATE_BY")
    private Long updateBy;

    @ApiModelProperty(value = "修改人姓名")
    @TableField("UPDATE_BY_NAME")
    private String updateByName;

    @ApiModelProperty(value = "修改时间")
    @TableField("UPDATE_TIME")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "作业港区代码,字典")
    @TableField("PORT_AREA_CODE")
    private String portAreaCode;

    @ApiModelProperty(value = "作业港区名称")
    @TableField("PORT_AREA_NAME")
    private String portAreaName;

    @ApiModelProperty(value = "航次")
    @TableField("VOYAGE")
    private String voyage;

    @ApiModelProperty(value = "作业单位")
    @TableField("CORP")
    private String corp;

    @ApiModelProperty(value = "费用")
    @TableField("FEE")
    private BigDecimal fee;

    @ApiModelProperty(value = "计划费用公式备注")
    @TableField("calculate_remark")
    private String calculateRemark;
}
